#define _CRT_SECURE_NO_WARNINGS
#include <iostream>

template<class T>
void Swap(T& x, T& y)
{
	T tmp = x;
	x = y;
	y = tmp;
}

using namespace std;
int main()
{
	int a = 1;
	int b = 12;
	char m = 'a';
	char n = 'b';

	Swap(a, b);
	Swap(m, n);

	return 0;
}